import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "zhongfulin",
  description: "前端开发小记",
  base: '/knowledge/',
  srcDir: "./docs/",
  head: [['link', { rel: 'icon', href: '/knowledge/favicon.ico' }],['mata',{name: 'referrer',content:'no-referrer'}]],
  themeConfig: {
    search:{
      provider: 'local'
    },
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      // { text: 'Home', link: '/' },
      { text: '开发小记', link: '/vueDevelopment' }
    ],

    sidebar: [
      {
        items: [
          { text: 'vue开发', link: '/vueDevelopment' },
          { text: 'electron开发', link: '/electronDevelopment' },
          { text: 'uniapp开发', link: '/uniappDevelopment' },
          { text: 'vue组件封装', link: '/vueComponentEncapsulation' },
          { text: '常用工具函数', link: '/commonUtilityFunctions' },
          { text: '自动化部署', link: '/automateDeployments' },
          { text: 'pnpm镜像设置', link: '/pnpmImageSettings' },
          { text: 'git常用命令', link: '/gitCommonCommands' },
          { text: 'docker常用命令', link: '/commonDockerCommands' },
          { text: 'css常用代码', link: '/commonCSSCode' },
          { text: '浏览器API', link: '/browserAPIs' },
          { text: '前端开发工具', link: '/frontEndDevelopmentTools' },
        ]
      }
    ],

    // socialLinks: [
    //   { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    // ]
  }
})
